#ifndef MINEBUTTON_H_
#define MINEBUTTON_H_H
#include <QPushButton>
#include <QMouseEvent>

class mineButton:public QPushButton
{

    Q_OBJECT
private:
    int NO;
    bool right_click;
    int button_type;
    bool enable_click;
public:
    mineButton(int , QWidget* parent = 0);
    bool type_button()const;
    bool is_click()const;
    void resetType(int i = 0);
    void like_click();
    void unclick();
protected:
    void mousePressEvent(QMouseEvent*);
signals:
    void return_style();
    void find_mine();
    void get_mine();
    void NO_button(int);

};
#endif
